package com.rxjava.test.rxjava;

import java.net.URI;
import java.util.List;

public interface Api {

    interface CatsQueryCallback {
        void onCatListReceived(List<Cat> cats);

        void onError(Exception e);
    }

    void queryCats(String query, CatsQueryCallback callback);

    interface StoreCallback {
        void onCatStored(URI uri);

        void onStoreFailed(Exception e);
    }

    void store(Cat cat, StoreCallback callback);
}
